﻿<!-- Content Header (Page header) -->
<div class="content-header">
    <div class="container-fluid">
        <div class="row mb-2">
            <div class="col-sm-6">
                <h1 class="m-0">角色权限管理</h1>
            </div><!-- /.col -->
            <div class="col-sm-6">
                <ol class="breadcrumb float-sm-right">
                    <li class="breadcrumb-item"><a href="/Home">首页</a></li>
                    <li class="breadcrumb-item active">角色权限管理</li>
                </ol>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-9">
                <div class="card">
                    <div class="card-header">
                        <h3 class="card-title"></h3>
                        <div class="card-tools">
                            <button id="btnAdd" title="" class="btn btn-primary" type="button" data-original-title="新增角色" data-toggle="tooltip" data-widget="">
                                <i class="fa fa-plus-circle"></i>&nbsp;&nbsp;新增
                            </button>
                            <button id="btnDelete" title="" class="btn btn-danger" type="button" data-original-title="删除角色" data-toggle="tooltip" data-widget="">
                                <i class="fa fa-times"></i>&nbsp;&nbsp;删除
                            </button>
                        </div>
                    </div>
                    <div class="box-body">
                        <div class="table-scrollable">
                            <table class="table table-striped table-bordered table-hover dataTable no-footer" role="grid" aria-describedby="sample_2_info">
                                <thead>
                                    <tr role="row">
                                        <th class="table-checkbox" style="width:40px;text-align:center;"><input id="checkAll" class="group-checkable" type="checkbox"></th>
                                        <th tabindex="0" aria-label="">
                                            角色编号
                                        </th>
                                        <th tabindex="0" aria-label="">
                                            角色名称
                                        </th>
                                        <th tabindex="0" aria-label="">
                                            描述
                                        </th>
                                        <th tabindex="0" style="width: 230px;" aria-label="">
                                            操作
                                        </th>
                                    </tr>
                                </thead>
                                <tbody id="tableBody"></tbody>
                            </table>
                        </div>
                    </div>
                    <!-- /.card-body -->
                    <div class="card-footer">
                        <nav aria-label="Page navigation">
                            <ul class="pagination justify-content-center" id="grid_paging_part"></ul>
                        </nav>
                    </div>
                    <!-- /.card-footer-->
                </div>
            </div>
            <div class="col-md-3">
                <div class="card">
                    <div class="card-header">
                        <h3 class="card-title">权限列表</h3>
                        <div class="card-tools">
                            <button id="btnSavePermission" class="btn btn-primary" type="button" data-original-title="保存" data-toggle="tooltip" data-widget="">
                                <i class="fa fa-save"></i>&nbsp;&nbsp;保存
                            </button>
                        </div>
                    </div>
                    <div class="card-body">
                        <div id="treeDiv" class="portlet-body">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@await Html.PartialAsync("_Edit.cshtml");
@section scripts{
    <script src="~/Content/js/Role/Index.js"></script>
}
